﻿using UnityEngine;
using System.Collections;

public class ScoreText : MonoBehaviour {

	// Use this for initialization

	private GUIText score;
	private int scoreNum = 0;
	void Start () {
		score = (GUIText)this.GetComponent("GUIText");
	}

	public void AddScore()
	{
		scoreNum += 5;
	}
	// Update is called once per frame
	void Update () {
		score.text = "Score : " + scoreNum.ToString();
	}
}
